<template>
  <yd-cityselect v-model="shouCitySelect" :callback="result" :items="district"></yd-cityselect>
</template>

<script>
export default {
  props: {
    value: {
      default: () => false,
    },
  },
  data() {
    return {
      district: [],
    };
  },
  computed: {
    shouCitySelect: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit("input", val);
      },
    },
  },
  methods: {
    result(ret) {
      _log(ret);
    },
  },
};
</script>
